gtkpopovermenu: Conditionally chain up in gtk_popover_menu_add()
authorErnestas Kulik <ernestask@gnome.org>
Mon, 23 Jul 2018 10:01:01 +0000 (13:01 +0300)
committerErnestas Kulik <ernestask@gnome.org>
Mon, 23 Jul 2018 10:01:01 +0000 (13:01 +0300)
Otherwise the stack gets parented to the wrong widget and the contents
are never drawn.

gtk/gtkpopovermenu.c

index 3ee3639bcd722a67bc4047e87573a14e04c87763..9f6f5564c500968ccf865d00a67cc240908955e6 100644 (file)
@@ -171,8 +171,7 @@ gtk_popover_menu_add (GtkContainer *container,
 
   if (stack == NULL)
     {
-      gtk_widget_set_parent (child, GTK_WIDGET (container));
-      _gtk_bin_set_child (GTK_BIN (container), child);
+      GTK_CONTAINER_CLASS (gtk_popover_menu_parent_class)->add (container, child);
     }
   else
     {